package ma.cdm.compteRenduVO;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class UserComiteVO implements Serializable, Externalizable {

	List<ComiteVO> comites = new ArrayList<ComiteVO>();
	private String userID;
	
	public List<ComiteVO> getComites() {
		return comites;
	}

	public void setComites(List<ComiteVO> comites) {
		this.comites = comites;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}


	public void writeExternal(ObjectOutput output) throws IOException {
		 output.writeObject(comites);
         output.writeObject(userID);

	}


	@SuppressWarnings("unchecked")
	public void readExternal(ObjectInput input) throws IOException,
			ClassNotFoundException {
		 comites =(List<ComiteVO>) input.readObject();
         userID =(String) input.readObject();

	}

}
